﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Site.Master" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="BEELab.Main" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentBody" runat="server">
    <div id="wrap" class="clearfix">
      <div class="dashboard-hold">
            <div class="block">
                <h2 class="headline">Home Page</h2>
                <h3>Active Sessions</h3>
                </div>

                <asp:GridView ID="gvSession" DataKeyNames="ID" runat="server" AutoGenerateColumns="False" CssClass="dash-col" DataSourceID="SqlDataSource3" OnRowDataBound="gvSession_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" Visible="False" />
                        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                        <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                        <asp:BoundField DataField="ID"  SortExpression="ID" HeaderText="Latest Activity" />
                        <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="EditSession.aspx?ID={0}" Text="View" />
                    </Columns>  
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:beelabConnectionString %>">
                    <SelectParameters>
                        <asp:SessionParameter Name="ID" SessionField="UserID" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </div>
        </div>

</asp:Content>

